using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using MonoTouch.Foundation;
using MonoTouch.UIKit;
using CoachingOrganizer.Logic.Models.Tools.MoodLevel;

namespace CoachingOrganizer.iOS.Controllers.Tools.MoodLevel
{
    [Register("MoodValueViewController")]
    public partial class MoodValueViewController : UIViewController
    {
        private readonly MoodValueCacheModel _model;

        public MoodValueViewController(MoodValueCacheModel model)
            : base("MoodValueView", NSBundle.MainBundle)
        {
            _model = model;
        }

        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            ValueTimeView.Text = _model.Time.ToShortTimeString();
            ValueView.Text = _model.Value.HasValue ? _model.Value.Value.ToString() : string.Empty;
        }
    }
}